#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(int argc, char const *argv[])
{
#if 0
    char arr1[100] = "welcome";
    char arr2[20] = "to washington";
    char arr3[10] = " real";
    strncat(arr1, arr3, 1);
    strcat(arr1, arr2);
    printf("%s\n", arr1);
#endif
    char arr4[100];
    char arr5[] = "to washington";
    char arr6[] = "welcome to real world";

    strncpy(arr4, arr6, 22);
    printf("%ld\n", strlen(arr4));
    // strcat(arr4, "\0");
    printf("%s\n", arr4);

    strcpy(arr4, arr5);

    /* code */
    return 0;
}
